using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace DigitalTrainSuite
{
	public partial class SensorMonitorForm : Form
	{
		public SensorMonitorForm()
		{
			InitializeComponent();
		}

		public void addToMonitor(string message)
		{
			this.textBoxMonitor.Text += Environment.NewLine + Environment.NewLine + message;
			this.textBoxMonitor.SelectionStart = this.textBoxMonitor.Text.Length;
			this.textBoxMonitor.ScrollToCaret();
		}

		public void clearMonitor()
		{
			this.textBoxMonitor.Text = "Sensor Monitor Output";
		}

		private void buttonClearMonitor_Click(object sender, EventArgs e)
		{
			this.textBoxMonitor.Text = "Sensor Monitor Output";
		}
	}
}